package com.yu.designpatterns.strategy;

public class CatComparatorHeight implements Comparator<Cat> {

    @Override
    public int comparator(Cat o1, Cat o2) {
        if (o1.height > o2.height){
            return -1;
        }else if (o1.height < o2.height){
            return 1;
        }else {
            return 0;
        }
    }
}
